/* CSS RESET */
@import "reset.css";

.wrapper {
    overflow: auto;
}
.wrapper>.container {
    overflow: visible;
}
label, .label {
    color: #444;
}
/* MAIN HEADER */
#header-spacer-top {
    position: fixed;
    background-color: white;
    top: 0; /* ~ #header.top */
    left: 0;
    right: 0;
    height: 8px;
}

#header {
    border-top: 2px solid forestgreen; /* ~ #header-spacer.top */
    border-bottom: 2px solid forestgreen; /* ~ #header-spacer.top */
    background-color: mediumspringgreen;
    padding: 6px 12px; /* ~ #header-spacer.top */
    height: 40px; /* ~ #header-spacer.top */
    position: fixed;
    top: 8px; /* #header-spacer-top.height | ~ #header-spacer.top */
    left: 4px;
    right: 4px;
    white-space: nowrap;
    overflow: hidden;
}
#header .today {
    float: right;
    font-style: italic;
}
#header .name {
    font-size: 16px;
    font-weight: bold;
}
#header .info {
    font-size: 12px;
}
#header-spacer-bottom {
    position: fixed;
    background-color: white;
    top: 64px; /* #header.outerHeight + #header.top | ~ #menu.top */
    left: 0;
    right: 0;
    height: 8px;
}

/* LEFT MENU */
#menu {
    position: fixed;
    left: 4px; /* ~ #page-header.left */
    top: 72px; /* #header-spacer-bottom.height + #header-spacer-bottom.top | = #page-header.top*/
    width: 120px; /* ~ #page-header.left */
    padding: 0 12px; /* ~ #page-header.left */
    white-space: nowrap;
    overflow: hidden;
    height: 100%;
    background-color: white;
}
#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#menu .attention {
    white-space: normal;
}
#menu a {
    text-decoration: none;
    color: darkgoldenrod;
    text-transform: uppercase;
    line-height: 24px;
}
#menu a:hover {
    color: forestgreen;
}

/* FOOTER */
#footer {
    position: fixed;
    bottom: 0;
    left: 4px;
    right: 4px;
    border-top: 1px solid gray;
    padding: 6px 12px 8px;
    color: gray;
    height: 18px;
    line-height: 18px;
    background-color: white;
    white-space: nowrap;
    overflow: hidden;
}
#footer-spacer {
    position: fixed;
    bottom: 33px; /* #footer.outerHeight | ~ #page-content.marginBottom */
    left: 4px;
    right: 4px;
    height: 8px;
    background-color: white;
}
#footer .logout {
    float: right;

}

/* PAGE-HEADER */
#page-header {
    position: fixed;
    left: 148px; /* #menu.left + #menu.outerWidth | = #page-content.marginLeft*/
    top: 72px; /* #menu.top | ~ #page-content.marginTop */
    right: 4px;
    height: 26px; /* ~ #page-content.marginTop */
    line-height: 26px;
    border-top: 2px solid #000099;
    border-bottom: 2px solid #000099;
    background-color: #4297d7;
    white-space: nowrap;
    overflow: hidden;
}
#page-header-spacer {
    position: fixed;
    background-color: white;
    top: 102px; /* #page-header.outerHeight + #page-header.top | ~ #page-content.marginTop */
    left: 148px; /* #page-header.left */
    right: 4px;
    height: 8px;
}
#page-header .title {
    font-variant: small-caps;
    font-weight: bold;
    padding-left: 6px;
    width: 50%;
    float: left;
}
#page-header .loader {
}
#ajax-loader {
    width: 43px;
    height: 11px;
    margin-top: 8px;
    display: none;
}

body > * {
    z-index: 1;
}

/* PAGE-CONTENT */
/* hide the page until it is fully processed */
#page-content {
    margin-top: 110px; /* #page-header.top */
    margin-left: 148px; /* #page-header.left  */
    margin-bottom: 41px; /* #footer.bottom + #footer.outerHeight + spatiu de 8px */
    margin-right: 4px;
    visibility: hidden;
}
#page-content.visible {
    visibility: visible !important;
    display: block !important;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

#confirmation-message {
    position: absolute;
    text-align: center;
    width: 100%;
    display: none;
}
#confirmation-message .content {
    display: inline-block;
    padding: 0 12px;
    background-color: #FFA500;
    color: #000000;
}
#confirmation-message.error .content {
    background-color: #ff0000;
    color: #ffff00;
}

.table-list td,
.table-list th {
    border: 1px solid #000000;
    padding: 2px 4px;
}

.note {
    font-size: 0.9em;
    color: #00f;
    font-style: italic;
}
.important {
    color: #00f;
    font-style: italic;
    margin: 1em 0;
}

table.form-layout td {
    vertical-align: top;
}
table.form-layout td.label {
    padding-right: 10px;
    text-align: right;
}
table.form-layout td.field {
    padding-bottom: 4px;
    width: 200px;
}
table.form-layout td.error-container {
    text-align: left;
}
table.form-layout td.field input,
table.form-layout td.field textarea {
    width: 100%;
}
table.form-layout td.required {
    font-weight: bold;
}


.action-buttons {
    margin-top: 1em;
    margin-bottom: 1em;
}

.error,
.error-container {
    color: #ff0000;
}

[unselectable=on] {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: -moz-none;
    -o-user-select: none;
    user-select: none;
}